package com.example.service;

import com.example.entity.Orders;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.OrdersMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrdersService extends ServiceImpl<OrdersMapper, Orders> {

    @Resource
    private OrdersMapper ordersMapper;

    public int insertByOrder(Orders orders){
        return  ordersMapper.insertByOrder(orders);
    }

}